package com.meilai.project.service.administration.goods;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.dto.administration.goods.GoodsManageDTO;
import com.meilai.project.entity.administration.goods.Goods;
import com.meilai.project.vo.administration.goods.GoodsManageVO;

import java.util.List;

/**
 * @author ykb
 * @date 2022/2/12 20:22
 */
public interface GoodsManageService extends IService<Goods> {
    // 分页
    Page<GoodsManageVO> selectPageList(Integer current_page, Integer page_size,
                                       GoodsManageDTO searchDTO);
    // 不分页
    List<GoodsManageVO> selectList(GoodsManageDTO searchDTO);


    // 新增
    Boolean addOne(GoodsManageDTO dto);

    // 编辑
    Boolean editOne(GoodsManageDTO dto);

    // 删除
    Boolean delete(Long id);

}
